package com.implementsystem.prestacontas.funcao.entity;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "funcoes"
})
@XmlRootElement(name = "rsp")
public class RespostaFuncao {
	
	@XmlElement(name = "funcoes", required = true)
    private List<Funcao> funcoes;
	
	@XmlAttribute(name="status")
	private String status;

	public List<Funcao> getFuncoes() {
		
		if(funcoes == null)
			funcoes = new ArrayList<Funcao>();
		
		return funcoes;
		
	}

	public void setFuncoes(List<Funcao> funcoes) {
		this.funcoes = funcoes;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
